package com.hnit.applet.common.model;

import cn.hutool.core.date.DateUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 错误信息实体
 *
 * @author zwj
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder(toBuilder = true)
public class Error {
    @Builder.Default
    @ApiModelProperty(value = "当前时间")
    private String currentTime = DateUtil.now();
    @ApiModelProperty(value = "错误编码")
    private String code;
    @ApiModelProperty(value = "错误信息")
    private String message;
    @ApiModelProperty(value = "错误信息详情")
    private String details;
}
